// 全局布局样式
.app-layout {
  min-height: 100vh;
  
  .ant-layout-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px 0 rgba(29, 35, 41, 0.05);
    padding: 0;
    height: 64px;
    line-height: 64px;
  }
  
  .ant-layout-sider {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    z-index: 10;
    overflow: auto;
    background: #fff;
    box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
    
    .sider-trigger {
      position: absolute;
      bottom: 16px;
      left: 16px;
      width: 32px;
      height: 32px;
      background: #1890ff;
      color: #fff;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      z-index: 11;
      
      &:hover {
        background: #40a9ff;
        transform: scale(1.05);
      }
    }
    
    &.ant-layout-sider-collapsed {
      .sider-trigger {
        left: 24px;
      }
    }
  }
  
  .site-layout {
    margin-left: 220px;
    margin-top: 64px;
    background: #f0f2f5;
    min-height: calc(100vh - 64px);
    transition: margin-left 0.2s;
    
    &.collapsed {
      margin-left: 80px;
    }
  }
  
  .ant-layout-content {
    margin: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    min-height: calc(100vh - 112px);
  }
  
  .ant-layout-footer {
    text-align: center;
    background: transparent;
    padding: 24px;
    color: rgba(0, 0, 0, 0.45);
  }
}

// 加载动画
.app-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

// 响应式布局
@media (max-width: 768px) {
  .app-layout {
    .ant-layout-sider {
      transform: translateX(-100%);
      transition: transform 0.2s;
      
      &.mobile-open {
        transform: translateX(0);
      }
    }
    
    .site-layout {
      margin-left: 0 !important;
      
      .ant-layout-content {
        margin: 16px;
        padding: 16px;
      }
    }
  }
}
